import request from '@/utils/request'

const home = {
  // 本单位及下级单位不同应用领域成果数量
  getAllInnovationType(params) {
    return request.get('/wcx/index/getByApplicationField', {params})
  },
  // 本单位及下级单位不同创新类别成果数量
  getAllInnovationCategory(params) {
    return request.get('/wcx/index/getByInnovationCategory', {params})
  },
  // 本单位及下级单位各单位成果数
  getAllDeptInnovation(params) {
    return request.get('/wcx/index/getAllDeptInnovation', {params})
  },
  // 获取本单位成果个数
  getMyInnovationCount(){
    return request.get(`/wcx/index/getMyInnovationCount`);
  },
  // 获取本单位及下属单位成果个数
  getMyDeptInnovationsCount(){
    return request.get(`/wcx/index/getMyDeptInnovationsCount`);
  },
  // 获取待我审批的成果数
  getMyApproveInnovationCount(){
    return request.get(`/wcx/index/getMyApproveInnovationCount`);
  },
  // 获取我已审批的成果数
  getMyApprovedProjectCount(){
    return request.get(`/wcx/index/getMyApprovedInnovationCount`);
  },
  // 本单位及下级单位成果数排名列表
  getDeptInnovationRanking(params){
    return request.get(`/wcx/index/getDeptInnovationRanking`, {params});
  },
  getByInnovationStatus(params){
    return request.get(`/wcx/index/getByInnovationStatus`, {params});
  },
  getAwardsProjectByYear(year){
    return request.get(`/wcx/index/getAwardsProjectByYear/${year}`);
  },
  getAwardsProjectByLevel(level){
    return request.get(`/wcx/index/getAwardsProjectByLevel/${level}`);
  },
  // 管理员 获取待我审批
  getGlyGztCount(){
    return request.get(`/wcx/index/getGlyGztCount`);
  },
  // 申报员 获取待我审批
  getPtGztCount(){
    return request.get(`/wcx/index/getPtGztCount`);
  },
  // 专家 待我事项
  getZjGztCount(){
    return request.get(`/wcx/index/getZjGztCount`);
  },
}

export default home;
